angular.module('bottomBarModule', [])
    .directive('appBottomBar', function () {
        return {
            restrict: 'AE',
            scope: {},
            replace: true,
            templateUrl: './src/views/templates/bottomBar.html',
            link: function (scope, ele, attr) {
                scope.urlDatas = [
                    {
                        link: 'home',
                        title: '首页',
                        iconSrc: './src/img/icon_bottom__0.png'
                    },
                    {
                        link: 'pro_categories',
                        title: '分类',
                        iconSrc: './src/img/icon_bottom__1.png'
                    },
                    {
                        link: 'pro_list',
                        title: '发现',
                        iconSrc: './src/img/icon_bottom__2.png'
                    },
                    {
                        link: 'shopCart',
                        title: '购物车',
                        iconSrc: './src/img/icon_bottom__3.png'
                    },
                    {
                        link: 'user',
                        title: '我的',
                        iconSrc: './src/img/icon_bottom__4.png'
                    }
                ]
            }
        }
    })